#ifndef _SYYC_H_
#define _SYYC_H_

#include "PocoHeaders.h"

class SYYC : public Poco::Runnable
{
public:
    static SYYC* Initialize();
    static SYYC* GetInstance();

public:
    int Start();
    int Stop();

public:
    std::string SerialSendHttpRequest(std::string strRequestJson);

private:
    SYYC();
    ~SYYC();
    virtual void run();
    void Routine();

private:
    void DoHttpReqeust(std::string strData);
    int SendHttpProtocol(std::string strUrl, std::string strSend, std::string &strRecv, int iConnectTimeout = 5, int iRecvTimeout = 5);

private:
    static SYYC* m_pInstance;

private:
    Poco::Thread m_thread;
    bool         m_bStop;
    Poco::Event  m_ready;
};


#endif // !_YYC_H_
